package com.cxf.cxfuserdemo.feign;

import com.cxf.cxfuserdemo.repository.Order;
import org.springframework.stereotype.Component;

/**
 * description: OrderFeignHystrix <br>
 * date: 2021/10/30 22:37 <br>
 * author: cxf <br>
 * version: 1.0 <br>
 */
@Component
public class OrderFeignHystrix implements OrderFeign{
    @Override
    public Order queryOrder(String orderId) {
        Order order = new Order();
        order.setOrderId("1234");
        order.setProductId("4321");
        order.setProductPrice("12.33");
        order.setProductName("美汁源");
        return order;
    }

    @Override
    public Order queryOrderFeign(String orderIdfeign) {
        Order order = new Order();
        order.setOrderId("1234");
        order.setProductId("4321");
        order.setProductPrice("12.33");
        order.setProductName("美汁源");
        return order;
    }
}
